<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="{d5_sta:d5_skin_type}/base/css/iframe.css">
<title></title>
<base href='{echo:$siteDomain;/}' />
<SCRIPT type='text/javascript' src="{d5_sta:d5_siteurl}/servtools/ajax_client/ajax.js"></SCRIPT>
<SCRIPT language=JavaScript src="{d5_sta:d5_skin_type}/js/jooyea.js"></SCRIPT>
<script type='text/javascript'>
function unitinfocheck()
{
var mood_text=trim($("mood").value);
if(mood_text==''){
	parent.Dialog.alert("{echo:lp{mo_add_err};/}");
  return (false);
}
  return (true);
}

function mood_com(mood_id,mod_id,type_id,start_num,end_num){
	var obj_mood=$('content_mood_'+mood_id);
	if(obj_mood.style.display=='none'){
		obj_mood.style.display="";
		if($("show_"+type_id+"_"+mod_id).innerHTML==''){
			parent.get_mod_com(type_id,mod_id,start_num,end_num);
		}
	}else{
		obj_mood.style.display='none';
		$('face_list_menu').style.display='none';
	}
}
</script>
</head>

<body id="iframecontent">
<form id="form1" name="form1" method="post" onsubmit="return unitinfocheck();" action="do.php?act=mood_add&user_id={echo:$userid;/}">
<h2 class="app_mood">{echo:$mood_title;/}</h2>
{sta:if($is_self=='Y')[exc]}
<div class="tabs">
	<ul class="menu">
        <li class="active"><a href="modules.php?app=mood_more" hidefocus="true">{echo:lp{mo_mine};/}</a></li>
        <li><a href="modules.php?app=mood_friend" hidefocus="true">{echo:lp{mo_pals};/}</a></li>
    </ul>
</div>

	{end:if/}
    <div class="mood_box">
		<ul>
			{sta:foreach($mood_rs as $val)[loop]}
			<li class="mood_list">
				{sta:if($is_self=='Y')[exc]}
				<div id="mood_operate_{echo:$val['mood_id'];/}" class="mood_operate"><a href="do.php?act=mood_del&mood_id={echo:$val['mood_id'];/}&app=mood_more"><img src="{d5_sta:d5_skin_image}/base/images/del.png" title="{echo:lp{mo_del};/}"></a></div>
				{end:if/}
                <div class="mood_cont">
					<div class="mood_text">{echo:filt_word(get_face($val['mood']));/}</div>
					<div class="mood_info">
						<span>{echo:$val['add_time'];/}</span>
						<span><a id="restore_mood_{echo:$val['mood_id'];/}" href="javascript:mood_com({echo:$val['mood_id'];/},{echo:$val['mood_id'];/},6,0,10);">{echo:lp{mo_com};/}(<label id="num_6_{echo:$val['mood_id'];/}">{echo:$val['comments'];/}</label>)</a></span>
						
					</div>
				</div>
				
				<div class="clear"></div>
	<div class="tleft ml20" style="display:none;" id='content_mood_{echo:$val["mood_id"];/}'>
	<div class="comment">
  	<div id='show_6_{echo:$val["mood_id"];/}'></div>
  	<div class="clear"></div>
  	{sta:if($ses_uid!='')[exc]}
		<div class="reply">
				<img class="figure" src='{echo:get_sess_userico();/}' />
				<p><textarea type="text" maxlength="150" onkeyup="return isMaxLen(this)"  id="reply_6_{echo:$val['mood_id'];/}_input"></textarea></p>
				<div class="replybt">
					<input class="left button" onclick="parent.restore_com({echo:$val['user_id'];/},6,{echo:$val['mood_id'];/});" type="button" name="button" id="button" value="{echo:lp{mo_b_con};/}" />
					<a id="reply_a_{echo:$val['mood_id'];/}_input" class="right" href="javascript:void(0);" onclick=" showFace(this,'face_list_menu','reply_6_{echo:$val['mood_id'];/}_input');">{echo:lp{mo_face};/}</a>
				</div>
				<div class="clear"></div>
		</div>
		{end:if/}
	</div>
	</div>
	{end:foreach/}
			</li>
		</ul>
		<div class="clear"></div>
		{echo:page_show($isNull,$page_num,$page_total);/}
    </div>
</form>
<!-- face begin -->
<div id="face_list_menu" class="emBg" style="display:none;z-index:100;"></div>
<!-- face end -->
<div class="guide_info {echo:$data_none;/}">
	{echo:lp{mo_none_data};/}
</div>
{sta:if(isset($_GET['remind']))[exc]}
	<script type='text/javascript'>
		mood_com({echo:$_GET['mod'];/},{echo:$_GET['mod'];/},6,0,10);
	</script>
{end:if/}
</body>
</html>
